package self;

import java.util.ArrayList;

public class LambdaTests {
    interface IntegerMath {
        int operation(int a, int b);
    }

    public static void main(String[] args) {
        Integer i = 0 ;
        Integer j = 0 ;
        System.out.println(i);
        IntegerMath addition = (a, b) -> a + b;
        IntegerMath subtraction = (a, b) -> a - b;
        System.out.println(addition);
        ArrayList<Object> list = new ArrayList<>();
        list.forEach(System.out::println);
        boolean id = true;
        if (id) {

        }
        if (!id) {

        }
        String str = null;
        if (str == null) {

        }
        if (str != null) {
            try {
                str = "nihao";
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        int k = 0;
        short k1 = (short) k;
    }
}
